#!/bin/sh
# rm compiled files

SCRIPT=`readlink -f "$0"`
P=`dirname "$SCRIPT"` # $P/$0
cd $P

rm -vfr server
rm -vf fs/*.amx

for i in `ls plugins/`
do
  rm -vf plugins/$i/*.so
  rm -vf plugins/$i/*.o
done

rm -vf gm/*.amx
rm -vf gm/*.tmp

for i in `cat gm/states.txt | awk -F':' '{print $1}'`
do
  rm -vfr gm/$i
done

rm -vf test/gm/*.amx

